//导入封装的axios对象
import request from "@/utils/request"
//导入自定义数据类型
import type { User } from "@/model"

//会员登录接口
export function login(data:User){
    return request.post("/home/login", data)
}

//查询当前用户信息
export function getUser(){
    return request.get("/home/user")
}

//查询商品分类
export function getCategoryList() {
    return request.get("/home/category/list")
}

//查询所有商品
export function getGoodsList(){
    return request.get("/home/goods/list")
}





